Skip to content

Improve assertChanges method in MarkersChangeListener #2569#2585

Merged
fedejeanne merged 1 commit intoeclipse-platform:masterfrom
vi-eclipse:assertions_MarkersChangeListener
Mar 24, 2026
Merged

Improve assertChanges method in MarkersChangeListener #2569#2585
fedejeanne merged 1 commit intoeclipse-platform:masterfrom
vi-eclipse:assertions_MarkersChangeListener

Conversation

@fedejeanne
Copy link
Copy Markdown
Member

Use assertAll and more details about the missing/extra markers.

Contributes to
#2569

…m#2569

Use assertAll and more details about the missing/extra markers.

Contributes to
eclipse-platform#2569
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves diagnostics in MarkersChangeListener.assertChanges (used by marker-related resource tests) by grouping assertions and reporting detailed mismatches for added/removed/changed marker deltas, helping investigate sporadic failures like #2569.

Changes:

  • Refactors assertChanges to snapshot deltas once and compute actual vs. expected added/removed/changed marker lists.
  • Uses JUnit 5 Assertions.assertAll to report all assertion failures together.
  • Adds explicit checks for unsupported IMarkerDelta kinds and exact per-kind marker equality (order-independent).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   36m 9s ⏱️ +34s
 4 546 tests ±0   4 523 ✅ +1   23 💤 ±0  0 ❌  - 1 
12 234 runs  ±0  12 075 ✅ +1  159 💤 ±0  0 ❌  - 1 

Results for commit 90387e4. ± Comparison against base commit 2222ff6.

@fedejeanne fedejeanne merged commit 1fa3c16 into eclipse-platform:master Mar 24, 2026
22 of 23 checks passed
@fedejeanne fedejeanne deleted the assertions_MarkersChangeListener branch March 24, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants